package design.test4Strategy;

public class XiaoMiMobile {
	Context context;//可以通过构造方法参数或者是get，set方法传入
	public void photo(){
		context.photo();//委托，委托给 context 干活
	}

	public Context getContext() {
		return context;
	}

	public void setContext(Context context) {
		this.context = context;
	}
}
